using System.Collections.Generic;
using System.Linq;

namespace UI.Infrastructure.Pictures
{
    internal class ProductPictures
    {
        private readonly Dictionary<string, string> _pictureDictionary;
        private static ProductPictures _current;

        internal static ProductPictures Current
        {
            get { return _current ?? (_current = new ProductPictures()); }
        }
        private ProductPictures()
        {
            _pictureDictionary = new Dictionary<string, string> {{"FI-SW-01", "fish1.jpg"}};
        }

        internal string GetPictureFileNameForProduct(string productId)
        {
            return _pictureDictionary.SingleOrDefault(c => c.Key == productId).Value;
        }

    }
}